import scrapy

class StockItem(scrapy.Item):
    # 定义股票数据的字段
    id = scrapy.Field()              # 序号
    stock_code = scrapy.Field()      # 股票代码
    stock_name = scrapy.Field()       # 股票名称
    latest_price = scrapy.Field()    # 最新报价
    change_percent = scrapy.Field()   # 涨跌幅
    change_amount = scrapy.Field()    # 涨跌额
    volume = scrapy.Field()           # 成交量
    turnover = scrapy.Field()         # 成交额
    amplitude = scrapy.Field()        # 振幅
    high = scrapy.Field()             # 最高
    low = scrapy.Field()              # 最低
    open_price = scrapy.Field()       # 今开
    prev_close = scrapy.Field()       # 昨收
    timestamp = scrapy.Field()        # 时间戳